package com.ruoyi.patrol.domain.dto;

import java.util.List;

/**
 * @Description: 系统基本情况
 * @author: elis
 * @date: 2023.12.07
 */
public class BasicSituationOfTheSystemDto {
    /**
     * 学校数量
     */
    private List<SchoolQuantity> schoolQuantity;

    /**
     * 安保人数
     */
    private Integer numberOfSecurityPersonnel;
    /**
     * 持证率
     */
    private float licenseHoldingRate;
    /**
     *行政人员
     */
    private Integer administrativeStaff;
    /**
     * 安全负责人
     */
    private Integer headOfSecurity;
    /**
     * 安防器械
     */
    private Integer securityEquipment;

    public List<SchoolQuantity> getSchoolQuantity() {
        return schoolQuantity;
    }

    public void setSchoolQuantity(List<SchoolQuantity> schoolQuantity) {
        for (SchoolQuantity quantity : schoolQuantity) {
            switch (quantity.getSchoolType()){
                case "1":
                    quantity.setSchoolType("小学校");
                    break;
                case "2":
                case "3":
                    quantity.setSchoolType("中学校");
                    break;
                case "4":
                    quantity.setSchoolType("九年一贯制学校");
                    break;
            }
        }

        this.schoolQuantity = schoolQuantity;
    }

    public Integer getNumberOfSecurityPersonnel() {
        return numberOfSecurityPersonnel;
    }

    public void setNumberOfSecurityPersonnel(Integer numberOfSecurityPersonnel) {
        this.numberOfSecurityPersonnel = numberOfSecurityPersonnel;
    }

    public float getLicenseHoldingRate() {
        return licenseHoldingRate;
    }

    public void setLicenseHoldingRate(float licenseHoldingRate) {
        this.licenseHoldingRate = licenseHoldingRate;
    }

    public Integer getAdministrativeStaff() {
        return administrativeStaff;
    }

    public void setAdministrativeStaff(Integer administrativeStaff) {
        this.administrativeStaff = administrativeStaff;
    }

    public Integer getHeadOfSecurity() {
        return headOfSecurity;
    }

    public void setHeadOfSecurity(Integer headOfSecurity) {
        this.headOfSecurity = headOfSecurity;
    }

    public Integer getSecurityEquipment() {
        return securityEquipment;
    }

    public void setSecurityEquipment(Integer securityEquipment) {
        this.securityEquipment = securityEquipment;
    }


}


